import request from '@/utils/request'

// 查询样本框导入列表
export function listSampleboxImportBase(query) {
  return request({
    url: '/erecord/sampleboxImportBase/list',
    method: 'get',
    params: query
  })
}

// 查询样本框导入详细
export function getSampleboxImportBase(batchNo) {
  return request({
    url: '/erecord/sampleboxImportBase/' + batchNo,
    method: 'get'
  })
}

// 新增样本框导入
export function addSampleboxImportBase(data) {
  return request({
    url: '/erecord/sampleboxImportBase',
    method: 'post',
    data: data
  })
}

// 修改样本框导入
export function updateSampleboxImportBase(data) {
  return request({
    url: '/erecord/sampleboxImportBase',
    method: 'put',
    data: data
  })
}

// 删除样本框导入
export function delSampleboxImportBase(batchNo) {
  return request({
    url: '/erecord/sampleboxImportBase/' + batchNo,
    method: 'delete'
  })
}

export function importData(data) {
  return request({
    url: '/erecord/sampleboxImportBase/importData',
    method: 'post',
    data: data
  })
}